Example#1: JSON Demo

(CRUD)

JSON array: delimiters ([]): Collection of JSON objects
JSON object: delimiters ({}): Collection of key/value pairs

Objective: print 100 titles to the screen

- Built-in data structures of Java

Collection framework:

Collection: interface
The following interfaces were derived from Collection: List, Set, Queue
List: is a collection that is allowed to have duplicates
Set: is a collection of unique values

Aside: remove the element at index 0 from an ArrayList: O(n) with n being the size of the list
ArrayList to implement a queue: convention element at 0 is the front of the queue
n elements in the queue: n remove(0) operations
1st remove(0): O(n)
2nd remove(0): O(n)


... n remove(0): O(n)

O(n^2)


